

// some Wave API gadget defaults...


function initWave() {
	// FIX: are the window. annoying yet?
	if( window.wave && window.wave.isInWaveContainer() ) { // I wonder what happens when this sentry fails...
		// establish the callback hook functions, if defined
		if( window.updatingWaveState ) { window.wave.setStateCallback( window.updatingWaveState ); }
		if( window.updatingWaveParticipants ) { window.wave.setParticipantCallback( window.updatingWaveParticipants ); }
		if( window.updatingWaveInit ) { window.updatingWaveInit(); }
	}
}


gadgets.util.registerOnLoadHandler( initWave );

